import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './assets/iconFonrt/iconfont.css'

Vue.use(ElementUI)

// 挂载 uitls
import Utils from '../src/utils/index'
Vue.prototype.$utils = Utils

// 注册全局过滤器/时间戳转换日期
import globalFilter from '../src/utils/filter'
Object.keys(globalFilter).forEach((key) => {
  Vue.filter(key, globalFilter[key])
})

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
